export enum APIstatus {
  IDLE,
  PENDING,
  FULFILLED,
  REJECTED,
}

export type APIError = {
  message: string
  code: number
}

export type APIData<DataType = any> = {
  error?: APIError
  status: APIstatus
  data?: DataType
}
